﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using Common;
using DAL;
using System.Data;
using WFNetLib;

namespace 服务器端.webAPI
{
    public partial class QueryMedicalResult : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            string id, d1,type;
            try
            {
                type = Request.QueryString["type"];
                id = Request.QueryString["ID"];
                d1 = Request.QueryString["d1"];
                //信息|用户id|实验id，实验名，实验室;
                if (string.IsNullOrEmpty(id))//没有这两个变量
                {
                    
                }
                else
                {
                    MedicalResultData m = MedicalResultDataDBOption.Get(type,id, d1);
                    if (m != null)
                    {
                        Response.Write(WFJSON.JsonSerializerBySingleData<MedicalResultData>(m));
                    }
                }
            }
            catch //(System.Exception ex)
            {
                
            }            
        }
    }
}